import request from '@/utils/request';

// 获取下拉库数据航站的
export async function queryCityInfo(params) {
  return request('/dp/sys/getSelectCityInfo', {
    method: 'get',
    params,
  })
}
// 获取贵宾室列表
export async function queryVipRoom (params) {
  return request('/vipRoom/sys/user/getVipRoomList', {
    method: 'get',
    params
  })
}
//  ===========航线统计==============
// 查询
export async function airlineTable(params) {
  return request('/vipRoom/stats/queryPageByFlight', {
    method: 'get',
    params
  });
}
// 导出
export async function airlineTableExport(params) {
  return request('/vipRoom/stats/exportByFlight', {
    method: 'get',
    responseType: 'blob',
    params
  });
}


// ==========类别统计表=============

export async function paxTypeTable(params) {
  return request('/vipRoom/stats/queryPageByType', {
    method: 'get',
    params
  });
}
// 导出
export async function paxTypeExport(params) {
  return request('/vipRoom/stats/exportByType', {
    method: 'get',
    responseType: 'blob',
    params
  });
}

export function getCheckedPaxType (params) {
  return request('/vipRoom/sys/vipPaxType/getVipRoomPaxType',{
    method: 'get',
    params
  })
}
//  ===========工作记录表==============
export async function workRecordTable(params) {
  return request('/vipRoom/stats/queryPageWorkRecords', {
    method: 'get',
    params
  });
}

export async function workRecordExport(params) {
  return request('/vipRoom/stats/workRecordsExport', {
    method: 'get',
    responseType: 'blob',
    params
  });
}


//  ========== 贵宾室统计 ==========

export async function realTimeData(params) {
  return request('/vipRoom/stats/queryPageByRoom', {
    method: 'get',
    params
  });
}

export async function realTimeExport(params) {
  return request('/vipRoom/stats/exportByRoom', {
    method: 'get',
    responseType: 'blob',
    params
  });
}
